<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style>
			body{
				background-image: url(img/th.jpg);
				background-image: url(img/th.jpg);
				/*背景随着页面滚动:scroll,默认值
				页面滚动而背景固定:fixed
				*/
			   /* background-attachment: fixed; */
			   /* background-position: 20%; */
			   /* 复合写法:; 
			   background: color image  repeat attachment position/size;
			   background: gainsboro url(img/th.jpg) no-repeat fixed center/100% 1005;
			   */
			}
			.box{
				width: 200px;
				height: 200px;
				border: 1px solid chartreuse;
				/* transparent:透明色 */
				background-color: rgba(255, 135, 25, 4);   
				/*背景图片重复显示：repeat
				 背景图片不重复显示：no-repeat
				rgba(255, 0, 0, .3)零点几的零可以不写,但一点几,二点几要写
				*/
				background-repeat: repeat-x;
				font-size: 36px;
			}
		</style>
	</head>
	<body>
		<div class="box"></div>
	</body>
</html>
